import request from "../request"

// 删除购物车商品
function deleteCart(data) {
    return request({
        url: "/cart/deleteAction",
        data
    })
}

// 获取购物车列表
function getCartList(data) {
    return request({
        url: "/cart/cartList",
        data
    })
}

// 添加商品到购物车

function addGoodsToCart(data) {
    return request({
        method: 'post',
        url: "/cart/addCart",
        data
    })
}

export {
    deleteCart,
    getCartList,
    addGoodsToCart
}